﻿Ext.define('yzmh.store.collect.Bengou', {
    extend: 'Ext.data.Store',
    model: 'yzmh.model.Collect',
    remoteSort: true,
    buffered: false,
    pageSize: 36,
    proxy: {
        type: 'ajax',
        api: {
            read: 'data/collect/bengou.aspx?a=list'
        },
        reader: {
            type: 'json',
            root: 'data',
            totalProperty: 'total'
        },
        simpleSortMode: true,
        listeners: {
            exception: function (theproxy, response, operation, options) {
                var result = Ext.decode(response.responseText);
                if (!result.success) {
                    notification('错误', result.errorMessage, true);
                }
            }
        }
    }
});